package com.example.utils;

import com.example.entity.Relation;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class UserDTO {
    private Integer id;
    //用户名
    private String account;
    //用户密码
    private String password;
    //用户性别
    private Integer sex;
    //出生日期
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private Date birth;
    //手机号
    private String phone;
    //地址
    private String address;
    //地址
    private String email;
    //角色id
    private Integer roleid;
    //创建时间
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private Date createtime;
    //头像
    private String userphoto;
    //角色对应的前端菜单列表
    private List<Relation> relationList;
}
